package com.baidu.health.service.impl;

import com.baidu.health.pojo.ResultResponse;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baidu.health.pojo.TbJurisdiction;
import com.baidu.health.service.TbJurisdictionService;
import com.baidu.health.mapper.TbJurisdictionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 *
 */
@Service
public class TbJurisdictionServiceImpl extends ServiceImpl<TbJurisdictionMapper, TbJurisdiction>
    implements TbJurisdictionService{
    @Autowired
    private TbJurisdictionMapper tbJurisdictionMapper;
    @Override
    public ResultResponse platformoperation(Integer platformId, String jurisdictionOperation) {
        TbJurisdiction tbJurisdiction=new TbJurisdiction();
        tbJurisdiction.setPlatformId(platformId);
        tbJurisdiction.setJurisdictionOperation(jurisdictionOperation);
        tbJurisdiction.setCreateTime(new Date());
        tbJurisdictionMapper.insert(tbJurisdiction);
        return ResultResponse.SUCCESS("操作成功");
    }
}




